package com.jxdinfo.hussar.example.common.dict.domain;

import java.util.Date;
import com.jxdinfo.hussar.example.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jxdinfo.hussar.example.common.core.domain.BaseEntity;

/**
 * 字典字段对象 sys_dict_single
 *
 * @author ruoyi
 * @date 2024-03-21
 */
public class SysDictSingle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long dictId;

    /** 类型(SYS_DICT_TYPE外键) */
    @Excel(name = "类型(SYS_DICT_TYPE外键)")
    private Long typeId;

    /** 数据值 */
    @Excel(name = "数据值")
    private String VALUE;

    /** 标签名 */
    @Excel(name = "标签名")
    private String LABEL;

    /** 排序 */
    @Excel(name = "排序")
    private Long SORT;

    /** 创建者 */
    @Excel(name = "创建者")
    private Long CREATOR;

    /** 上次编辑者 */
    @Excel(name = "上次编辑者")
    private Long lastEditor;

    /** 上次编辑时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次编辑时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastTime;

    /** 备用字段1 */
    @Excel(name = "备用字段1")
    private String bak1;

    /** 备用字段2 */
    @Excel(name = "备用字段2")
    private String bak2;

    public SysDictSingle(Long dictId, Long typeId, String VALUE, String LABEL, Long SORT, Long CREATOR, Long lastEditor, Date lastTime, String bak1, String bak2, String bak3, Long parentId) {
        this.dictId = dictId;
        this.typeId = typeId;
        this.VALUE = VALUE;
        this.LABEL = LABEL;
        this.SORT = SORT;
        this.CREATOR = CREATOR;
        this.lastEditor = lastEditor;
        this.lastTime = lastTime;
        this.bak1 = bak1;
        this.bak2 = bak2;
        this.bak3 = bak3;
        this.parentId = parentId;
    }

    /** 备用字段3 */
    @Excel(name = "备用字段3")
    private String bak3;

    /** 父级主键ID */
    @Excel(name = "父级主键ID")
    private Long parentId;

    public SysDictSingle() {
    }


    public void setDictId(Long dictId)
    {
        this.dictId = dictId;
    }

    public Long getDictId()
    {
        return dictId;
    }
    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId()
    {
        return typeId;
    }
    public void setVALUE(String VALUE)
    {
        this.VALUE = VALUE;
    }

    public String getVALUE()
    {
        return VALUE;
    }
    public void setLABEL(String LABEL)
    {
        this.LABEL = LABEL;
    }

    public String getLABEL()
    {
        return LABEL;
    }
    public void setSORT(Long SORT)
    {
        this.SORT = SORT;
    }

    public Long getSORT()
    {
        return SORT;
    }
    public void setCREATOR(Long CREATOR)
    {
        this.CREATOR = CREATOR;
    }

    public Long getCREATOR()
    {
        return CREATOR;
    }
    public void setLastEditor(Long lastEditor)
    {
        this.lastEditor = lastEditor;
    }

    public Long getLastEditor()
    {
        return lastEditor;
    }
    public void setLastTime(Date lastTime)
    {
        this.lastTime = lastTime;
    }

    public Date getLastTime()
    {
        return lastTime;
    }
    public void setBak1(String bak1)
    {
        this.bak1 = bak1;
    }

    public String getBak1()
    {
        return bak1;
    }
    public void setBak2(String bak2)
    {
        this.bak2 = bak2;
    }

    public String getBak2()
    {
        return bak2;
    }
    public void setBak3(String bak3)
    {
        this.bak3 = bak3;
    }

    public String getBak3()
    {
        return bak3;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dictId", getDictId())
            .append("typeId", getTypeId())
            .append("VALUE", getVALUE())
            .append("LABEL", getLABEL())
            .append("SORT", getSORT())
            .append("CREATOR", getCREATOR())
            .append("createTime", getCreateTime())
            .append("lastEditor", getLastEditor())
            .append("lastTime", getLastTime())
            .append("bak1", getBak1())
            .append("bak2", getBak2())
            .append("bak3", getBak3())
            .append("parentId", getParentId())
            .toString();
    }
}
